import React from 'react';
import { Story, Meta } from '@storybook/react/types-6-0';

import Progress, { ProgressProps } from './index';

const style: React.CSSProperties = {
  width: '200px',
};

export default {
  title: 'Components/Progress',
  component: Progress,
} as Meta;

const Template: Story<ProgressProps> = args => {
  return <Progress {...args}></Progress>;
};

export const Default = Template.bind({
  style,
});
Default.args = {
  percent: 70,
};
Default.storyName = '默认的 Progress';
